#ifndef _DAC8563_H_
#define _DAC8563_H_

#include <Arduino.h>

class DAC8563
{
private:
    int32_t _csPin;
    int32_t _dinPin;
    int32_t _sclkPin;

    void writeCommand(uint32_t command);
public:
    DAC8563();
    ~DAC8563();

    void begin(int32_t csPin = -1, int32_t dinPin = -1, int32_t sclkPin = -1);
    void setDACOutVoltage(uint8_t channel, int16_t mv);
};

#endif /* _DAC8563_H_ */


